#ifndef FILTERBOX_H
#define FILTERBOX_H
/*---------------------------------------------------------------------------*/
#include <QWidget>
#include <QtGui>
#include <string>
/*---------------------------------------------------------------------------*/
class QLineEdit;
class BrowserBox;
/*---------------------------------------------------------------------------*/
using namespace std;
/*---------------------------------------------------------------------------*/
class FilterBox : public QWidget
{
	Q_OBJECT

	public:

						FilterBox(BrowserBox *_flw);
						~FilterBox();
	
	void				setFocus( QKeyEvent *event );



	signals:
	
	void				closed();
	void				changed(string str);
	
	private:
	
	QLineEdit			*filterText;	
	BrowserBox		*flw;	

	
	private slots:
	
	void				returnPressed();
	void				close();
	
	protected:
	
	virtual void		keyPressEvent( QKeyEvent *event );
};
/*---------------------------------------------------------------------------*/
#endif
